/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#include "ResourceLoader.h"
#include "OgreResourceGroupManager.h"

namespace PQEngine
{
	const Ogre::String ResourceLoader::ENV_DATA_PATH="data/env";
	const Ogre::String ResourceLoader::ENV_GROUP_NAME="group/env";

	const Ogre::String ResourceLoader::DATA_TERRAIN_PATH="data/terrain";

	const Ogre::String ResourceLoader::FILE_SYSTEM="FileSystem";
	const Ogre::String ResourceLoader::ZIP="Zip";

	ResourceLoader::ResourceLoader()
	{
	}

	void ResourceLoader::load()
	{
		//load environment resource
		Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ENV_DATA_PATH,FILE_SYSTEM,ENV_GROUP_NAME);
		Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup(ENV_GROUP_NAME);

	}

}
